body {
    background-image: url(/img/tiny_grid.png);
    background-repeat: repeat;
    position: relative;
    overflow-x: hidden;
    font-family: 'Monda', "PingFang SC", "Microsoft YaHei", sans-serif;
}
body,
html { height: 100%;}
.nav .open > a, 
.nav .open > a:hover, 
.nav .open > a:focus {background-color: transparent;}

a { transform: translate(0,0); transition:all .2s ease-in 0s;color: #222; text-decoration: none; }
a:hover { color: #23C2F8; text-decoration: none; }
a:focus { text-decoration: none; }
.post-header h1 { 
    font-size: 1.7em; font-weight:bold; line-height: 1.5; 
}

#top-navbar {
    display: flex;
    justify-content: flex-end;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 998;
    height: 27px;
    margin-right: 10px;
    padding-right: 10px;
    font: normal 12px/28px Helvetica, Tahoma, Arial, sans-serif;

    border-bottom: 1px solid #e8e8e8;
    background: #f8f8f8;
}

#dropdownMenu1 {
    height: 25px;
    padding: 0px 12px;
    margin-bottom: 2px;
    background: transparent;
}

#top-navbar p {
    float: right;
    margin: 0;
    padding: 0;
    text-align: right;
}
/*-------------------------------*/
/*           Wrappers            */
/*-------------------------------*/

#wrapper {
    padding-left: 220px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#sidebar-wrapper {
    z-index: 1000;
    margin-left: -220px;
    left: 220px;
    width: 220px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    background: #4d4d4d;
    border-radius: 0 10px 0px 0;
    box-shadow: 5px 5px 5px #aaa;
}

#collapse-sidebar-wrapper {
    display: none;
}

#wrapper.toggled {
    padding-left: 0px;
}

#wrapper.toggled #sidebar-wrapper {
    left: 0;
}

#page-content-wrapper {
    width: 100%;
}
#page-content-wrapper.toggled {
    max-width: 1024px;
}

.inset {
  padding: 20px;
}

#sidebar-wrapper::-webkit-scrollbar {
  display: none;
}

#wrapper.toggled #sidebar-wrapper {
    width: 0px;
}

/*-------------------------------*/
/*            小屏处理            */
/*-------------------------------*/
@media (max-width: 767px) {
    #wrapper {
        padding-left: 0;
    }
    #sidebar-wrapper {
        left: 0;
    }
    #hamburger-wrapper {
        display: none;
    }
    #collapse-sidebar-wrapper {
        display: block;
    }
    .inset {
        padding-top: 40px;
    }
}

/*-------------------------------*/
/*     Sidebar nav styles        */
/*-------------------------------*/

.sidebar-nav {
    position: absolute;
    top: 0;
    width: 220px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav li {
    position: relative; 
    line-height: 20px;
    display: inline-block;
    width: 100%;
}

.sidebar-nav li span {
    margin-right: 20px;
}
.sidebar-nav li:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    width: 3px;
    background-color: #1c1c1c;
    -webkit-transition: width .2s ease-in;
      -moz-transition:  width .2s ease-in;
       -ms-transition:  width .2s ease-in;
            transition: width .2s ease-in;

}
.sidebar-nav li:first-child a {
    color: #fff;
    background-color: #1a1a1a;
}
.sidebar-nav li:nth-child(2):before {
    background-color: #ec1b5a;   
}
.sidebar-nav li:nth-child(3):before {
    background-color: #79aefe;   
}
.sidebar-nav li:nth-child(4):before {
    background-color: #314190;   
}
.sidebar-nav li:nth-child(5):before {
    background-color: #279636;   
}
.sidebar-nav li:nth-child(6):before {
    background-color: #7d5d81;   
}
.sidebar-nav li:nth-child(7):before {
    background-color: #ead24c;   
}
.sidebar-nav li:nth-child(8):before {
    background-color: #2d2366;   
}
.sidebar-nav li:nth-child(9):before {
    background-color: #35acdf;   
}
.sidebar-nav li:hover:before,
.sidebar-nav li.open:hover:before {
    width: 100%;
    -webkit-transition: width .2s ease-in;
      -moz-transition:  width .2s ease-in;
       -ms-transition:  width .2s ease-in;
            transition: width .2s ease-in;

}

.sidebar-nav li a {
    display: block;
    color: #ddd;
    text-decoration: none;
    padding: 10px 15px 10px 30px;    
}

.sidebar-nav li a:hover,
.sidebar-nav li a:active,
.sidebar-nav li a:focus,
.sidebar-nav li.open a:hover,
.sidebar-nav li.open a:active,
.sidebar-nav li.open a:focus{
    color: #fff;
    text-decoration: none;
    background-color: transparent;
}

.sidebar-nav > .sidebar-brand {
    height: 65px;
    font-size: 20px;
    line-height: 44px;
}
.sidebar-nav .dropdown-menu {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: #4d4d4d;
}

/*-------------------------------*/
/*       Hamburger-Cross         */
/*-------------------------------*/

.hamburger {
  position: fixed;
  top: 5px;  
  z-index: 10001;
  display: block;
  width: 20px;
  height: 20px;
  left: 5px;
  background: transparent;
  border: none;
}
.hamburger:hover,
.hamburger:focus,
.hamburger:active {
  outline: none;
}
.hamburger.is-closed:before {
  content: '';
  display: block;
  width: 100px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  opacity: 0;
  -webkit-transform: translate3d(0,0,0);
  -webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed:hover:before {
  opacity: 1;
  display: block;
  -webkit-transform: translate3d(-100px,0,0);
  -webkit-transition: all .35s ease-in-out;
}

.hamburger.is-closed .hamb-top,
.hamburger.is-closed .hamb-middle,
.hamburger.is-closed .hamb-bottom,
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-middle,
.hamburger.is-open .hamb-bottom {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
}
.hamburger.is-closed .hamb-top,
.hamburger.is-closed .hamb-middle,
.hamburger.is-closed .hamb-bottom {
  background-color: #1a1a1a;
}
.hamburger.is-closed .hamb-top { 
  top: 3px; 
  -webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed .hamb-middle {
  top: 50%;
  margin-top: -2px;
}
.hamburger.is-closed .hamb-bottom {
  bottom: 3px;  
  -webkit-transition: all .35s ease-in-out;
}

.hamburger.is-closed:hover .hamb-top {
  top: 0;
  -webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed:hover .hamb-bottom {
  bottom: 0;
  -webkit-transition: all .35s ease-in-out;
}
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-middle,
.hamburger.is-open .hamb-bottom {
    background-color: #999;
}
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-bottom {
  top: 50%;
  margin-top: -2px;  
}
.hamburger.is-open .hamb-top { 
  -webkit-transform: rotate(45deg);
  -webkit-transition: -webkit-transform .2s cubic-bezier(.73,1,.28,.08);
}
.hamburger.is-open .hamb-middle { display: none; }
.hamburger.is-open .hamb-bottom {
  -webkit-transform: rotate(-45deg);
  -webkit-transition: -webkit-transform .2s cubic-bezier(.73,1,.28,.08);
}
.hamburger.is-open:before {
  content: '';
  display: block;
  width: 100px;
  font-size: 14px;
  color: #555;
  line-height: 20px;
  text-align: center;
  opacity: 0;
  -webkit-transform: translate3d(0,0,0);
  -webkit-transition: all .35s ease-in-out;
}
.hamburger.is-open:hover:before {
  opacity: 1;
  display: block;
  -webkit-transform: translate3d(-100px,0,0);
  -webkit-transition: all .35s ease-in-out;
}

/***************************************************************************/
.profile {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    margin-bottom: 10px;
    align-items: center;
}

.profile span {
    margin-top: 10px;
    color: #999;
    font-size: 17px;
}

.footer {
    display: flex;
    flex: 1;
    justify-content: center;
    margin-top: 30px;
}

.footer>a {
    text-decoration: none;
    color: #666;
}

footer.reference {
    margin-top: 15px;
    font-size: 11px;
    color: #cc0000;
}

footer.reference strong>a {
    color: #607D8B;
    text-decoration: none;
}

footer.reference strong>a:hover {
    color: #337ab7;
    text-decoration: none;
}

.glyphicon {
    top: 3px;
}

a.posttags {
    -mox-border-radius:50px;
    -webkit-border-radius:50px;
    border-radius: 50px;
    border:1px solid #ddd;
    display: inline-block;
    font-size: 12px !important;
    margin: 0px;
    padding: 2px 10px 2px 10px;
    font-family: 'Georgia',serif;
    font-style: italic;
    color:#222;
    -webkit-transition: all 0.1s ease-out;
    -moz-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
}

a.posttags:hover {
    color:#fff;
    text-decoration:none;
    border-color:#26C9FF;
    background-color:#26C9FF;
}

/*a.posttags {
    margin-bottom:20px;
}*/

#chat-frame {
    position: fixed;
    right: 0px;
    bottom: 0px;
    z-index: 1000;
    margin: 0px;
    padding: 0px;
    width: 400px;
    height: 520px;
    display: none;
    border-radius: 5px;
    border: 0px;
    overflow: hidden;
}

.right-bottom-panel {
    display: none;
    position: fixed;
    right: 0px;
    bottom: 0px;
    border: none;
    outline: none;
    opacity: 0.75;
    border-radius: 4px;
    z-index: 10001;
    background: #E5E5E5;
    padding-left: 10px;
    padding-right: 10px;
}

.right-bottom-panel>button {
    border: none;
    outline: none;
}

/* 
    主搜索栏
 */
.navbar .search-group {
    display: flex;
    flex :1;
    margin-left: 20px;
    margin-top: 10px;
    margin-right: 5px;
}

.navbar .search-group .input {
    background: transparent;
    color: #eee;
    padding-right: 30px;
    border: 1px solid #999;
    border-radius: 5px;
}

.navbar .search-group .glyphicon-search {
    position: relative; 
    top: 0px;
    left: -25px;
    color:#999;
}